package com.wangbo.validate.model.param;

import lombok.Data;
import lombok.experimental.Accessors;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Accessors(chain = true)
@Data
public class UserAdd {
    @NotBlank(message = "用户名不能为空")
    public String name;
    @NotBlank(message = "电话号码不能为空")
    public String phone;
    @NotNull(message = "租户ID不能为空")
    public Integer tenantId;
}
